package org.mini.utils
{
	import flash.utils.Dictionary;

	public class Singleton
	{
		private static var classMap:Dictionary=new Dictionary();

		public static function registerClass(interfaceName:String,clazz:Class):void
		{
			if(classMap[interfaceName]==undefined){
				classMap[interfaceName] = clazz;
			}	
		}
		
		public static function getClass(interfaceName:String):Class
		{
			return classMap[interfaceName];
		}
		
		public static function removeClass(interfaceName:String):void
		{
			delete classMap[interfaceName];
		}
	}
}